package com.pachiraframework.springcloud.rabbitmq.domain;

import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName="atguigu",type="book")
public class Book {

	private Integer id;
	private String author;
	private String bookName;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	@Override
	public String toString() {
		return "Book [id=" + id + ", author=" + author + ", bookName="
				+ bookName + "]";
	}
	
	
	
}
